﻿using System;
using System.Collections.Generic;
using System.Data.Linq;
using System.Linq;
using System.Text;
using Repository.Abstract;
using DomainModel.Entities;

namespace Repository.Concrete
{
    class SqlUserRepository : IUserRepository
    {
        private readonly Table<User> _userTable;

        public SqlUserRepository(string connectionString)
        {
            _userTable = (new DataContext(connectionString)).GetTable<User>();
        }

        public IQueryable<User> AllUsers
        {
            get { return _userTable; }
        }

    }
}
